<template>
  <h2>路由基础</h2>

  <p>
    <RouterLink to="/home">首页</RouterLink> |
    <RouterLink to="/classify">分类页</RouterLink> |
    <RouterLink to="/cart">购物车页</RouterLink> |
    <RouterLink to="/mine">我的页</RouterLink> |
    <RouterLink to="/detail/1233">详情页1</RouterLink> |
    <RouterLink to="/detail/4566">详情页2</RouterLink>
  </p>

  <hr />

  <RouterView />

  <RouterView name="a" />
  <RouterView name="b" />
</template>

<style>
.router-link-active {
  color: red;
}
</style>
